package com.itheima.service;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
public class MsgConsumer {

    @JmsListener(destination = "itheima")
    public void readMsg(String text) {

        System.out.println("接受到消息："+text);
    }
}
